<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserCreateTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        //创业经历
        Schema::create('user_create', function(Blueprint $table)
        {
            $table->increments('id');                               //编号
            $table->unsignedInteger('user_id');                     //用户ID
            $table->string('company');                              //公司名称
            $table->string('position');                             //职位
            $table->timestamp('start_time');                        //开始时间
            $table->timestamp('end_time');                          //结束时间
            $table->integer('status')->default(0);                  //审核状态
            $table->timestamp('check_time');                        //审核时间
            $table ->unsignedInteger('project_id')->nullable();     //项目标识
            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('user_create');
	}

}
